import request from '@/utils/request'
export const addMenuApi = (data) => {
  return request({
    url: '/auth/menu',
    method: 'post',
    data
  })
}
export const getMenuInfoApi = (id) => {
  return request({
    url: '/auth/menu/' + id,
    method: 'get',
  })
}
export const editMenuApi = (data) => {
  return request({
    url: '/auth/menu/' + data.id,
    method: 'put',
    data
  })
}
export const delMenuApi = (id) => {
  return request({
    url: '/auth/menu/' + id,
    method: 'delete'
  })
}
// /auth/role
